package com.zhl.service;

import com.zhl.model.Meeting;

import java.util.List;
import java.util.Map;

public interface MeetingService {

    /**
     *  查找所有会议信息
     * @return List<Meeting>
     */
    List<Meeting> findMeetings(String title,String status);

    /**
     * 根据id查找会议信息
     * @param id
     * @return Map<String, Object>对象
     */
    Map<String, Object> findMeetingById(Integer id);

    /**
     * 会议打卡
     * @param uId
     * @param mId
     * @return Integer类型
     */
    Integer updateJoinById(Integer uId, Integer mId);

    /**
     * 查看当前用户是否参加了会议
     * @param uId
     * @param mId
     * @return
     */
    boolean findJoinById(Integer uId, Integer mId);

    /**
     * 添加会议
     * @param meeting
     * @return
     */
    boolean saveMeeting(Meeting meeting);
}
